#!/bin/sh

function print_jstat(tmp_folder,process_id){
  sleep 10
  touch ${tmp_folder}/jstat.log
  echo "jstat -l $process_id > ${tmp_folder}/jstat.log"
  jstat -l $process_id > ${tmp_folder}/jstat.log
  echo "获取线程信息完毕"
}